{% extends 'base/base.html' %}

{% block title %}搜索结果{% endblock %}


{% block content %}
{% if query %}
        <h3>搜索结果如下：</h3>
        {% for result in page.object_list %}
            <a href="{% url 'main:question_detail' result.object.pk %}">  {{ result.object.title }} </a><br/>
        {% empty %}
            <p>啥也没找到</p>
        {% endfor %}
    {% endif %}
{% endblock %}






